@import './variables.scss';
@import './mixins.scss';

html,
body {
  height: 100%;
  font-size: 16px;
}

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: transparent;
  list-style: none;
  box-sizing: border-box;
}

body {
  line-height: 1.2;
}

:focus {
  outline: 1;
}

article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary {
  display: block;
}

nav ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

a {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted #000;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}

body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-thumb {
  border-radius: 7px;
  background-color: $themeColor;
}
body::-webkit-scrollbar-thumb:hover {
  background-color: $themeDeepColor;
}
body::-webkit-scrollbar-track {
  border-radius: 7px;
}

code::-webkit-scrollbar {
  height: 4px;
}
code::-webkit-scrollbar-thumb {
  background-color: $themeColor;
}
code::-webkit-scrollbar-thumb:hover {
  background-color: $themeDeepColor;
}

div::-webkit-scrollbar {
  width: 8px;
}
div::-webkit-scrollbar-thumb {
  border-radius: 7px;
  background-color: $themeColor;
}
div::-webkit-scrollbar-thumb:hover {
  background-color: $themeDeepColor;
}
div::-webkit-scrollbar-track {
  border-radius: 7px;
  height: 5px;
}

input,
textarea {
  background: none;
  outline: none;
  border: none;
  border-radius: 0;
}

input,
select {
  vertical-align: middle;
}

img[src=''],
img:not([src]) {
  opacity: 0;
}

.ant-pagination {
  @include bg_color('deep_bgc');
  @include font_color('font_normal_color');
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  .ant-pagination-prev button,
  .ant-pagination-item a,
  .ant-pagination-next button {
    @include font_color('font_normal_color');
  }
  .ant-pagination-item-active a {
    color: $themeColor !important;
  }
}

.icon {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  overflow: hidden;
}

.ant-modal-content {
  @include bg_color('main_bgc');
  svg {
    @include my_fill('font_normal_color');
  }
  .ant-modal-header {
    @include bg_color('main_bgc');
    .ant-modal-title {
      @include font_color('font_normal_color');
    }
  }
}

.ant-form-item-label {
  label {
    width: 100%;
    padding-left: 10px;
    background-color: $secondaryColor;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-weight: 700;
    text-align: center;
  }
}
.ant-form-item-control-input {
  .ant-input,
  .ant-input-password {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.swiper-button-prev {
  background-color: unset;
  border-radius: unset;
  background: url(../assets/imgs/leftarrow.png) no-repeat;
  background-size: contain !important;
}

.swiper-button-next {
  background-color: unset;
  border-radius: unset;
  background: url(../assets/imgs/rightarrow.png) no-repeat;
  background-size: contain;
}

.swiper-pagination.swiper-pagination-fraction {
  color: #fff;
}

.scrollbar::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #f5f5f5;
}

.scrollbar::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background-color: #f5f5f5;
}

.scrollbar::-webkit-scrollbar-thumb {
  background-color: orangered;
  background-image: -webkit-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
}
